//
//  HealthFoodDetailView.m
//  LoveHealth
//
//  Created by 枫哥 on 14-9-23.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HealthFoodDetailView.h"

#define TopHeight  220
@interface HealthFoodDetailView ()
//- (void)p_setupSubviews;
@end

@implementation HealthFoodDetailView
- (void)dealloc
{
    self.foodDetail = nil;
    [super dealloc];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setFoodDetail:(HealthFoodDetail *)foodDetail
{
    if (_foodDetail != foodDetail) {
        [_foodDetail release];
        _foodDetail = [foodDetail retain];
    }
    [self.detailWebView loadHTMLString:foodDetail.message baseURL:nil];
    self.detailTitleLabel.text = foodDetail.name;
    self.detailImageView.image = foodDetail.showImage;

    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
